package com.e.dianshang.service.impl;

import com.e.dianshang.mapper.BrandMapper;
import com.e.dianshang.pojo.Brand;
import com.e.dianshang.service.BrandService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Description: TOOD
 * @ClassName: BrandService
 * @Author: ${陈柯宇}
 * Date: 2020/11/10 10:18
 * @Version: 1.0
 */
@Service
public class BrandServiceImpl implements BrandService {

    @Resource
    BrandMapper brandMapper;

    @Override
    public List<Brand> findAllBrand() {
        return brandMapper.selectAll();
    }

    @Override
    public List<Map<String, Object>> findGoodsByBrand(Integer id) {
        return brandMapper.findGoodsByBrand(id);
    }

    @Override
    public List<Map<String, Object>> findGoodsAllByBrand(Integer id, String memory, String color, String size) {
        return brandMapper.findGoodsAllByBrand(id,memory,color,size);
    }
}
